	<style>
		#metable{
			width:100%;
		}
		#metable th{
			text-align:center;
		}
		#metable td{
			text-align:center;
		}
	</style>
	<include file='Public/header' />
	<h1 class="page-header">订单维护</h1>
	<form action="{:U('search')}" method="post" class="navbar-form navbar-left">
				<div id="search" class="form-group">
			  <input type="text" class="form-control"  name="searchname" placeholder="订单号">
			   <input type="submit" name="search" class="btn btn-primary" value="搜索">
			</div>
	</form>
	<a class="pull-right" href="{:U('index')}">查看全部订单</a>
	<a class="pull-right" href="{:U('paied')}">查看已付款订单&nbsp&nbsp|&nbsp&nbsp</a>
	<a class="pull-right" href="{:U('unpaied')}">查看未付款订单&nbsp&nbsp|&nbsp&nbsp</a>
	<form method='POST' action='index'>

	<table id="metable" class='table table-striped'>
<tr><th>订单号</th><th>总价</th><th>用户</th><th>收货人</th><th>联系电话</th><th>收货地址</th><th>下单时间</th><th>付款情况</th><th colspan='2'>操作</th></tr>

<volist name="list" id='vo'>
	<tr>
		<td>{$vo.dnum}</td>
		<td>{$vo.total}元</td>
		<td>{$vo.uname}</td>
		<td>{$vo.receiver}</td>
		<td>{$vo.phone}</td>
		<td>{$vo.address}</td>
		<td>{$vo.time}</td>
		<td><if condition="($vo.flag eq 1)">已付款<else />未付款</if></td>
		<td><a href="{:U('Dingdan/show',array('dnum'=>$vo['dnum']))}">详情</a>&nbsp|&nbsp
		<a href="javascript:if(confirm('确认删除?')) location='{:U('delete',array('id'=>$vo['id']))}'">删除</a>
	</td>
	</tr>
</volist>
</table>
</form>
<div class="text-center">
	<ul class="pagination">{$page}</ul>
</div>
<include file='Public/footer'/>
